package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 肖像认证对比类型
 */
@Getter
@AllArgsConstructor
public enum PortraitCompareTypeEnum {

    LIVE_IMAGE_COMPARE((byte)1, "活体照片与公安预留照片对比"),
    ID_CARD_FRONT_IMAGE_COMPARE((byte)2, "身份证正面照和公安预留照片对比");

    private Byte value;

    private String text;

    public static PortraitCompareTypeEnum of(byte value) {
        for (PortraitCompareTypeEnum t : values()) {
            if (t.value == value) {
                return t;
            }
        }
        return null;
    }

}
